﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace sy3_2_2_
{
    internal class Program
    {
        static void Main(string[] args)
        {
            float length, width, price;
            int layers;

            Console.Write("请输入楼房长(米): ");
            length = float.Parse(Console.ReadLine());
            Console.Write("请输入楼房宽(米): ");
            width = float.Parse(Console.ReadLine());
            Console.Write("请输入楼房层数(层): ");
            layers = int.Parse(Console.ReadLine());
            Console.Write("请输入楼房单价(万元): ");
            price = float.Parse(Console.ReadLine());

            Building b = new Building(length, width, layers);
            b.MyPrice = price;

            Console.WriteLine("\n======以下是输出======");
            Console.Write("楼房总面积为(平方): ");
            Console.WriteLine(b.GetArea());
            Console.Write("楼房总价格为(万元): ");
            Console.WriteLine(b.TotalPrice());
            Console.WriteLine("按任意键结束程序: ");
            Console.ReadKey();
        }
    }
    

}
